import { contentObj } from "screens/edit/edit.slice";
import { http } from "./http";

export interface LoginData {
  content: contentObj[];
  browseCount: number;
  contentNum: number;
  liveDays: number;
  tops: contentObj[]
}

export const Login = ():Promise<LoginData> => {
  return new Promise((res) => {
    http("Login").then((data: { data: LoginData }) => {
      res(data.data);
    });
  });
};
